#include <stdio.h>
#define jinzhi 2

int bian(int shi)
{
	int i;
	if (shi>0)
	{
		i=shi % jinzhi;
		shi=bian(shi/jinzhi);
	}
	else
		return 0;
	return shi*10+i;
}

int main(int argc, char const *argv[])
{
	int shi;
	int er;
	printf("输入一个十进制数:\n");
	scanf("%d",&shi);
	er=bian(shi);
	printf("%d\n", er);
	return 0;
}